<template>
  <div class="box">
    <h2>Child111 component</h2>
    <button @click="clickHandler">给Child2传递数据</button>
  </div>
</template>

<script lang="ts" name="Child1" setup>
  import emitter from "@/bus/bus";

  const clickHandler = () => {
    //
    emitter.emit('child2Data',{name:'小甜甜',age: 20})
  }
</script>

<style scoped>

</style>
